package mytomcat.filter.base;
import mytomcat.core.MyRequest;
import mytomcat.core.MyResponse;
import mytomcat.dto.ServletInfo;
import mytomcat.dto.XmlNodeInfo;

import java.util.Map;

/**
 * @author swc
 * @date 2020/5/29 0029 上午 9:51
 */
public interface BaseFilter {

    //获取servlet的映射信息
    Map<String, ServletInfo> getSerVletInfo(XmlNodeInfo xmlNodeInfo);

    //过滤器拦截的url  匹配的进入正确的servlet处理类 不匹配的进入错误页面
    void filterAllowUrl(MyRequest myRequest, MyResponse myResponse, XmlNodeInfo xmlNodeInfo);

}
